/**
 * @File name: modules/static_pool.h
 * @Synopsis:
 * @Author: xing.dai@aliyun.com
 * @Version: 0.0.1
 * @Date: 2018-08-28 15:45
 */

#ifndef __STATIC_POOL_H__
#define __STATIC_POOL_H__

#include "types.h"

typedef enum {
    MEM_STATIC_LIST_ID = 0,
    MEM_STATIC_NODE_ID = 1,
    MEM_STATIC_OBJECT_ID = 2,
    MEM_STATIC_DEVICE_ID = 3,
    MEM_STATIC_LIMIT_ID
} static_mem_type;


int pool_init(void);
void *smalloc(static_mem_type type);

#endif

